package cn.edu.controller;

import cn.edu.domain.All;
import cn.edu.domain.PageBean;
import cn.edu.service.lead_TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/lead_Teacher")
public class lead_TeacherController{
    @Autowired
  private lead_TeacherService teacherService;
    //分页查询
    @PostMapping("/{currentPage}/{pageSize}")
    public Result selectByPageAndCondition(@PathVariable Integer currentPage,
                                         @PathVariable Integer pageSize,
                                         @RequestBody All t) {
        PageBean<All> pageBean = teacherService.selectByPageAndcondition(currentPage, pageSize, t);
        return new Result(Code.GET_OK, pageBean);
    }
}
